﻿using Autodesk.Revit.UI;
using MaterialDesignColors;
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ZhuXingFamilys.AuditIndicators
{
    /// <summary>
    /// MapAndModel.xaml 的交互逻辑
    /// </summary>
    public partial class MapAndModel : Window
    {
        private static MapAndModel instance = null;
        private UIApplication UIApp;
        public MapAndModel(UIApplication uiapp)
        {
            UIApp = uiapp;
            //ui库使用
            ColorZoneAssist.SetMode(new GroupBox(), ColorZoneMode.Light);
            Hue hue = new Hue("name", System.Windows.Media.Color.FromArgb(1, 2, 3, 4),
                System.Windows.Media.Color.FromArgb(1, 5, 6, 7));
            InitializeComponent();
        }
        public static MapAndModel getInstance(UIApplication uiapp)
        {
            if (instance == null)
            {
                instance = new MapAndModel(uiapp);
            }
            return instance;
        }

        private void MapAndModel_OnClosed(object sender, EventArgs e)
        {
            instance = null;
        }

        private void MapAndModel_OnLoaded(object sender, RoutedEventArgs e)
        {


        }

    }
}
